package com.ylfstu;

import java.math.BigInteger;

public class BigInteger_ {
    public static void main(String[] args) {

        BigInteger bigInteger = new BigInteger("238799999999999999999");
        System.out.println(bigInteger);

        //1.在对 BigInteger 进行加减乘除的时候，需要用相应的方法，不能用 + - * /
        BigInteger bigInteger1 = new BigInteger("100");
        BigInteger add = bigInteger.add(bigInteger1);//加
        System.out.println(add);
        BigInteger subtract = bigInteger.subtract(bigInteger1);
        System.out.println(subtract);
        BigInteger multiply = bigInteger.multiply(bigInteger1);
        System.out.println(multiply);
        BigInteger divide = bigInteger.divide(bigInteger1);
        System.out.println(divide);
        //
        //
    }
}
